#pragma once

#include "stdafx.h"

class GraphicFunctions
{
public:
  static HFONT BuildFont(const TCHAR* fontName, int fontSize, BOOL bBold, BOOL bItalic);

  static void DrawGradientGDI(HDC, const RECT&, COLORREF, COLORREF);
  static void DrawGradientGDI(HDC, const RECT& iClip, const RECT& iRect, COLORREF, COLORREF);

  static void BltAlpha(HDC hdcDest, int dx, int dy, int dw, int dh, HDC hdcSrc, int sx, int sy, BYTE alpha)
  { GraphicFunctions::BltAlpha(hdcDest, dx, dy, dw, dh, hdcSrc, sx, sy, dw, dh, alpha); }
  static void BltAlpha(HDC hdcDest, int dx, int dy, int dw, int dh, HDC hdcSrc, BYTE alpha)
  { GraphicFunctions::BltAlpha(hdcDest, dx, dy, dw, dh, hdcSrc, dx, dy, dw, dh, alpha); }
  static void BltAlpha(HDC, int, int, int, int, HDC, int, int, int, int, BYTE alpha);

  static COLORREF GetMedianColor(COLORREF clr1, COLORREF clr2);
};